<!DOCTYPE html>
<!-- saved from url=(0076)http://www.uphsh.com/wap/ef73d9dc381d412f964b99e521c270a6/invoice?userToken= -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--<base href="http://www.uphsh.com:80/">--><base href=".">


<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="telephone=no" name="format-detection">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<title>极速开票</title>
<link type="text/css" href="../../resource/yst_files/wap_common.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="../../resource/yst_files/fapiao.css">
<script src="../../resource/yst_files/jquery-1.8.0.min.js" type="text/javascript"></script>
<script type="text/javascript" src="../../resource/yst_files/wap_common.js"></script>
<script src="../../resource/qrcode.js"></script>


<link rel="stylesheet" href="../../resource/ystfiles/weuimin.css">
<link rel="stylesheet" href="../../resource/ystfiles/example.css">
<script type="text/javascript" src="../../resource/ystfiles/api.js"></script>
<script type="text/javascript" src="../../resource/ystfiles/jweixin1002.js"></script>
<script type="text/javascript" src="../../resource/ystfiles/jweixin1.js"></script>
<script src="../../resource/jquery1.js"></script>
<script src="../../resource/qrcode.js"></script>
<script src="../../resource/jquerybarcode.js"></script>
<script src="../../script/api.js"></script>
<script src="../../resource/ystfiles/qrcode.js"></script>
<script src="../../resource/ystfiles/jquerybarcode.js"></script>
<script type="text/javascript" src="../../script/constants.js"></script>
<style>
a.btn {
    width: 60px;
    line-height: 25px;
    display: block;
    text-align: center;
    font-size: 12px;
    background: rgba(51,51,51,0.3);
    color: #fff;
    border-radius: 5px;
}
</style>
</head>

<body>
	<div class="header" style="100%">
        <div class="return">
        	<img src="../../image/back.png" style="left:0" onclick="toindex()" />
        </div>
        <div class="menu" style="display: none">
        	<a href="javaScript:;"></a>
        	<ul class="items" style="display: none;">
		    	<li data-href="plugin/helpCenter/find?id=47">帮助中心</li>
		    	<li data-href="wap/orders/ef73d9dc381d412f964b99e521c270a6">我的订单</li>
		    	<li data-href="userCenter/ef73d9dc381d412f964b99e521c270a6/wap/userInfo">我的账户</li>
		    </ul>
        </div>
        <div class="tittle">
    		极速开票
        </div>
    </div>
    <div id="contant" style="height: 563px;">

		<div class="ico_pass clearfix"> <!-- onclick="fplist()" -->
			<div class="fl" style="padding-left:3%; padding-top:12px; width:10%">
		        <img src="../../resource/yst_files/fp.png" width="18" height="16">
		    </div>
			<p class="fr p2" >我的发票</p>
		</div>

		<div>
			<table class="tab" id="tab">
			  <tbody><tr>
			    <td class="tl">发票代码</td>
			    <td class="tr"><span><input id="dm" style="background: transparent;text-align: right" type="text" value="0" readonly="true"></input></span></td>
			  </tr>
			  <tr>
			    <td class="tl">发票号码</td>
			    <td class="tr"><span><input id="hm" style="background: transparent;text-align: right" type="text" value="0.00" readonly="true"></input></span></td>
			  </tr>
			  <tr>
			    <td class="tl">发票金额</td>
			    <td class="tr"><span><input id="je" style="background: transparent;text-align: right" type="text" value="0.00" readonly="true"></input></span></td>
			  </tr>
			</tbody></table>
			<table class="tab" id="tab1" style='display: none'>
			  <tbody><tr>
			    <td class="tl">发票未生成原因</td>
			    <td class="tr"><span><input id="msg" style="background: transparent;text-align: right" type="text" value="0" readonly="true"></input></span></td>
			  </tr>
			  </tbody></table>
		</div>
		<!-- 加载动画 -->
	<div id="loadingToast" style="display:none;">
			<div class="weui-mask_transparent"></div>
			<div class="weui-toast">
				<i class="weui-loading weui-icon_toast"></i>
				<p class="weui-toast__content">数据加载中...</p>
			</div>
		</div>



	</div>


<img id='gr_pic1' src='' style="margin-top: 40%;width:100%;height: 40%">


</body>
<script type="text/javascript">

apiready = function(){
 $("#loadingToast").show();
		var lsh = api.pageParam.LSH;
		 console.info("LSH："+lsh);

			api.ajax({
    			//url: 'http://wechat.scjinsui.com/weixin/wxUser/gridUserInfo2.do',
    			//url: 'http://192.168.76.49:8080/wxUser/fpxx.do',
    			url: url.fpxx,
    			method: 'post',
    			data: {
     			   values: {
     			       lsh: lsh
     			   }
    			}
			}, function(ret, err){
			console.info(JSON.stringify(ret));
			if(ret.code=="0"){
				if(ret.source=="base64"){
					$("#gr_pic1").hide();
					$("#tab1").show();
					 $("#msg").val("发票服务器尚未生成发票");
				}
				document.getElementById("gr_pic1").src="data:image/png;base64,"+ret.source;
				$("#dm").val(ret.dm);
				$("#hm").val(ret.hm);
				$("#je").val(ret.je);
				$("#loadingToast").hide();
			}else{
			   $("#tab").hide();
			   $("#tab1").show();
			   $("#msg").val(ret.msg);
			   $("#gr_pic1").hide();
			   $("#loadingToast").hide();
			}

			})


	};

function toindex(){
        api.closeWin();
	}
</script>
</html>
